<?php
class ArchiveController extends CF_Controller_Action
{
    public function indexAction()
    {
        
        $linkID = $this->_getParam('link_id',0);
        $tagID = $this->_getParam('tag_id',0);
        
        /*
         * if it is a general set of feeds with special tag occernaces  
         */
        if($tagID > 0 && $linkID > 0){
        	$this->view->feeds = Application_Model_RssReaderApi::getFeedsByLinkIdWithCirtainTag($tagID, $linkID);  	
        }
        
        /*
         * if it is a  set of feeds of local rss link  with special occernaces  
         */
        if ($tagID > 0 && $linkID == 0){
        	$this->view->feeds = Application_Model_RssReaderApi::getFeedsByLinkIdWithCirtainTag($tagID);

        }
        
    }

}

